import {ref} from 'vue'
import PageContent from '@/components/page-content/PageContent.vue'

export default function useSearch() {
  const pageContentRef = ref<InstanceType<typeof PageContent>>()
  
  const handleSelectClick: any = (formData: any) => {  
    (pageContentRef.value as any).getTableData(formData)
  }
  const handleResetClick:any = () => {
    (pageContentRef.value as any).getTableData()
  }
  return [handleSelectClick,handleResetClick,pageContentRef]
}